add_library(record_manager
    record_manager.cc
)

target_link_libraries(record_manager
    storetask_manager
    common_log
    common_time_utils
    ${SHARE_LIB_ZMQ}
)

install(TARGETS record_manager
    CONFIGURATIONS Release Debug Coverage Profile
    LIBRARY DESTINATION lib
)

add_library(storetask_manager
    storetask_manager.cc
)

target_link_libraries(storetask_manager
    common_log
    store_task_proto
    storetask
)

install(TARGETS storetask_manager
    CONFIGURATIONS Release Debug Coverage Profile
    LIBRARY DESTINATION lib
)

add_library(storetask
storetask.cc
)

target_link_libraries(storetask
    common_log
    common_time_utils
    sensor_proto
    store_file
    pthread
    ${SHARE_LIB_CURL}
)

install(TARGETS storetask
    CONFIGURATIONS Release Debug Coverage Profile
    LIBRARY DESTINATION lib
)

add_subdirectory(conf)
add_subdirectory(file)
add_subdirectory(proto)
